<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
SeaGlassStyle (Sea Glass Look and Feel for Swing 0.2 API)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SeaGlassStyle (Sea Glass Look and Feel for Swing 0.2 API)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SeaGlassStyle.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../com/seaglasslookandfeel/SeaGlassRegion.html" title="class in com.seaglasslookandfeel"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../com/seaglasslookandfeel/SeaGlassStyleWrapper.html" title="class in com.seaglasslookandfeel"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?com/seaglasslookandfeel/SeaGlassStyle.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SeaGlassStyle.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.seaglasslookandfeel</FONT>
<BR>
Class SeaGlassStyle</H2>
<PRE>
<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  <IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">javax.swing.plaf.synth.SynthStyle</A>
      <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>com.seaglasslookandfeel.SeaGlassStyle</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../com/seaglasslookandfeel/SeaGlassStyleWrapper.html" title="class in com.seaglasslookandfeel">SeaGlassStyleWrapper</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>SeaGlassStyle</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></DL>
</PRE>

<P>
<p>A SynthStyle implementation used by SeaGlass. Each Region that has been
 registered with the SeaGlassLookAndFeel will have an associated
 SeaGlassStyle. Third party components that are registered with the
 SeaGlassLookAndFeel will therefore be handed a SeaGlassStyle from the look
 and feel from the #getStyle(JComponent, Region) method.</p>

 <p>Based on NimbusStyle by Richard Bair and Jasper Potts. Reimplemented
 because too much is package local.</p>

 <p>This class properly reads and retrieves values placed in the UIDefaults
 according to the standard SeaGlass/Nimbus naming conventions. It will create
 and retrieve painters, fonts, colors, and other data stored there.</p>

 <p>SeaGlassStyle also supports the ability to override settings on a per
 component basis. SeaGlassStyle checks the component's client property map for
 "SeaGlass.Overrides". If the value associated with this key is an instance of
 UIDefaults, then the values in that defaults table will override the standard
 SeaGlass defaults in UIManager, but for that component instance only.</p>

 <p>Optionally, you may specify the client property
 "SeaGlass.Overrides.InheritDefaults". If true, this client property indicates
 that the defaults located in UIManager should first be read, and then
 replaced with defaults located in the component client properties. If false,
 then only the defaults located in the component client property map will be
 used. If not specified, it is assumed to be true.</p>

 <p>You must specify "SeaGlass.Overrides" for
 "SeaGlass.Overrides.InheritDefaults" to have any effect. "SeaGlass.Overrides"
 indicates whether there are any overrides, while
 "SeaGlass.Overrides.InheritDefaults" indicates whether those overrides should
 first be initialized with the defaults from UIManager.</p>

 <p>The SeaGlassStyle is reloaded whenever a property change event is fired
 for a component for "SeaGlass.Overrides" or
 "SeaGlass.Overrides.InheritDefaults". So for example, setting a new
 UIDefaults on a component would cause the style to be reloaded.</p>

 <p>The values are only read out of UIManager once, and then cached. If you
 need to read the values again (for example, if the UI is being reloaded),
 then discard this SeaGlassStyle and read a new one from SeaGlassLookAndFeel
 using SeaGlassLookAndFeel.getStyle.</p>

 <p>The primary API of interest in this class for 3rd party component authors
 are the three methods which retrieve painters: #getBackgroundPainter,
 #getForegroundPainter, and #getBorderPainter.</p>

 <p>SeaGlassStyle allows you to specify custom states, or modify the order of
 states. Synth (and thus Nimbus and SeaGlass) has the concept of a "state".
 For example, a JButton might be in the "MOUSE_OVER" state, or the "ENABLED"
 state, or the "DISABLED" state. These are all "standard" states which are
 defined in synth, and which apply to all synth Regions.</p>

 <p>Sometimes, however, you need to have a custom state. For example, you want
 JButton to render differently if it's parent is a JToolbar. In SeaGlass, you
 specify these custom states by including a special key in UIDefaults. The
 following UIDefaults entries define three states for this button:</p>

 <pre>
 <code>
     JButton.States = Enabled, Disabled, Toolbar
     JButton[Enabled].backgroundPainter = somePainter
     JButton[Disabled].background = BLUE
     JButton[Toolbar].backgroundPainter = someOtherPaint
 </code>
 </pre>

 <p>As you can see, the <code>JButton.States</code> entry lists the states
 that the JButton style will support. You then specify the settings for each
 state. If you do not specify the <code>JButton.States</code> entry, then the
 standard Synth states will be assumed. If you specify the entry but the list
 of states is empty or null, then the standard synth states will be assumed.
 </p>
<P>

<P>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#LARGE_KEY">LARGE_KEY</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Large" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#LARGE_SCALE">LARGE_SCALE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale factor for "large" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#MINI_KEY">MINI_KEY</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Mini" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#MINI_SCALE">MINI_SCALE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale factor for "mini" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#NATURAL_KEY">NATURAL_KEY</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Natural" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#NATURAL_SCALE">NATURAL_SCALE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale factor for "natural" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#SMALL_KEY">SMALL_KEY</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Small" size variant.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#SMALL_SCALE">SMALL_SCALE</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scale factor for "small" size variant.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#get(javax.swing.plaf.synth.SynthContext, java.lang.Object)">get</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
    <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Getter for a region specific style property.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getBackgroundPainter(javax.swing.plaf.synth.SynthContext)">getBackgroundPainter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the appropriate background Painter, if there is one, for the state
 specified in the given SynthContext.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getBorderPainter(javax.swing.plaf.synth.SynthContext)">getBorderPainter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the appropriate border Painter, if there is one, for the state
 specified in the given SynthContext.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getColorForState(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType)">getColorForState</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
                 <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/ColorType.html?is-external=true" title="class or interface in javax.swing.plaf.synth">ColorType</A>&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color for the specified state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getFontForState(javax.swing.plaf.synth.SynthContext)">getFontForState</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the font for the specified state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getForegroundPainter(javax.swing.plaf.synth.SynthContext)">getForegroundPainter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the appropriate foreground Painter, if there is one, for the state
 specified in the given SynthContext.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthGraphicsUtils.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthGraphicsUtils</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getGraphicsUtils(javax.swing.plaf.synth.SynthContext)">getGraphicsUtils</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;context)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>SynthGraphicUtils</code> for the specified context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getInsets(javax.swing.plaf.synth.SynthContext, java.awt.Insets)">getInsets</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
          <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A>&nbsp;in)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Insets that are used to calculate sizing information.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthPainter.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthPainter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getPainter(javax.swing.plaf.synth.SynthContext)">getPainter</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>SynthPainter</code> that will be used for painting.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#getSizeVariant(javax.swing.JComponent)">getSizeVariant</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the size variant that is applicable for the given component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#installDefaults(com.seaglasslookandfeel.SeaGlassContext, com.seaglasslookandfeel.ui.SeaglassUI)">installDefaults</A></B>(<A HREF="../../com/seaglasslookandfeel/SeaGlassContext.html" title="class in com.seaglasslookandfeel">SeaGlassContext</A>&nbsp;context,
                <A HREF="../../com/seaglasslookandfeel/ui/SeaglassUI.html" title="interface in com.seaglasslookandfeel.ui">SeaglassUI</A>&nbsp;ui)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Install UI defaults.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#installDefaults(javax.swing.plaf.synth.SynthContext)">installDefaults</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Installs the necessary state from this Style on the <code>
 JComponent</code> from <code>context</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../com/seaglasslookandfeel/SeaGlassStyle.html#isOpaque(javax.swing.plaf.synth.SynthContext)">isOpaque</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the region is opaque.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.synth.SynthStyle"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class javax.swing.plaf.synth.<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getBoolean(javax.swing.plaf.synth.SynthContext, java.lang.Object, boolean)" title="class or interface in javax.swing.plaf.synth">getBoolean</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getColor(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType)" title="class or interface in javax.swing.plaf.synth">getColor</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getFont(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">getFont</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getIcon(javax.swing.plaf.synth.SynthContext, java.lang.Object)" title="class or interface in javax.swing.plaf.synth">getIcon</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getInt(javax.swing.plaf.synth.SynthContext, java.lang.Object, int)" title="class or interface in javax.swing.plaf.synth">getInt</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getString(javax.swing.plaf.synth.SynthContext, java.lang.Object, java.lang.String)" title="class or interface in javax.swing.plaf.synth">getString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#uninstallDefaults(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">uninstallDefaults</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="LARGE_KEY"><!-- --></A><H3>
LARGE_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>LARGE_KEY</B></PRE>
<DL>
<DD>"Large" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.LARGE_KEY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="SMALL_KEY"><!-- --></A><H3>
SMALL_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>SMALL_KEY</B></PRE>
<DL>
<DD>"Small" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.SMALL_KEY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MINI_KEY"><!-- --></A><H3>
MINI_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>MINI_KEY</B></PRE>
<DL>
<DD>"Mini" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.MINI_KEY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="NATURAL_KEY"><!-- --></A><H3>
NATURAL_KEY</H3>
<PRE>
public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>NATURAL_KEY</B></PRE>
<DL>
<DD>"Natural" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.NATURAL_KEY">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="LARGE_SCALE"><!-- --></A><H3>
LARGE_SCALE</H3>
<PRE>
public static final double <B>LARGE_SCALE</B></PRE>
<DL>
<DD>Scale factor for "large" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.LARGE_SCALE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="SMALL_SCALE"><!-- --></A><H3>
SMALL_SCALE</H3>
<PRE>
public static final double <B>SMALL_SCALE</B></PRE>
<DL>
<DD>Scale factor for "small" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.SMALL_SCALE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="MINI_SCALE"><!-- --></A><H3>
MINI_SCALE</H3>
<PRE>
public static final double <B>MINI_SCALE</B></PRE>
<DL>
<DD>Scale factor for "mini" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.MINI_SCALE">Constant Field Values</A></DL>
</DL>
<HR>

<A NAME="NATURAL_SCALE"><!-- --></A><H3>
NATURAL_SCALE</H3>
<PRE>
public static final double <B>NATURAL_SCALE</B></PRE>
<DL>
<DD>Scale factor for "natural" size variant.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#com.seaglasslookandfeel.SeaGlassStyle.NATURAL_SCALE">Constant Field Values</A></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getSizeVariant(javax.swing.JComponent)"><!-- --></A><H3>
getSizeVariant</H3>
<PRE>
public static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getSizeVariant</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html?is-external=true" title="class or interface in javax.swing">JComponent</A>&nbsp;c)</PRE>
<DL>
<DD>Gets the size variant that is applicable for the given component.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - 
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>

<A NAME="getGraphicsUtils(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getGraphicsUtils</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthGraphicsUtils.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthGraphicsUtils</A> <B>getGraphicsUtils</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;context)</PRE>
<DL>
<DD>Returns the <code>SynthGraphicUtils</code> for the specified context.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getGraphicsUtils(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">getGraphicsUtils</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - SynthContext identifying requester
<DT><B>Returns:</B><DD>SynthGraphicsUtils</DL>
</DD>
</DL>
<HR>

<A NAME="installDefaults(com.seaglasslookandfeel.SeaGlassContext, com.seaglasslookandfeel.ui.SeaglassUI)"><!-- --></A><H3>
installDefaults</H3>
<PRE>
public void <B>installDefaults</B>(<A HREF="../../com/seaglasslookandfeel/SeaGlassContext.html" title="class in com.seaglasslookandfeel">SeaGlassContext</A>&nbsp;context,
                            <A HREF="../../com/seaglasslookandfeel/ui/SeaglassUI.html" title="interface in com.seaglasslookandfeel.ui">SeaglassUI</A>&nbsp;ui)</PRE>
<DL>
<DD>Install UI defaults.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the SynthContext describing the component/regiont, the
                style, and the state.<DD><CODE>ui</CODE> - the UI delegate.</DL>
</DD>
</DL>
<HR>

<A NAME="installDefaults(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
installDefaults</H3>
<PRE>
public void <B>installDefaults</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Installs the necessary state from this Style on the <code>
 JComponent</code> from <code>context</code>.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#installDefaults(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">installDefaults</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying component to install
            properties to.</DL>
</DD>
</DL>
<HR>

<A NAME="getInsets(javax.swing.plaf.synth.SynthContext, java.awt.Insets)"><!-- --></A><H3>
getInsets</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A> <B>getInsets</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
                        <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Insets.html?is-external=true" title="class or interface in java.awt">Insets</A>&nbsp;in)</PRE>
<DL>
<DD>Returns the Insets that are used to calculate sizing information.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getInsets(javax.swing.plaf.synth.SynthContext, java.awt.Insets)" title="class or interface in javax.swing.plaf.synth">getInsets</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying requester<DD><CODE>in</CODE> - insets Insets to place return value in.
<DT><B>Returns:</B><DD>Sizing Insets.</DL>
</DD>
</DL>
<HR>

<A NAME="getColorForState(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType)"><!-- --></A><H3>
getColorForState</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> <B>getColorForState</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
                              <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/ColorType.html?is-external=true" title="class or interface in javax.swing.plaf.synth">ColorType</A>&nbsp;type)</PRE>
<DL>
<DD>Returns the color for the specified state. This should NOT call any
 methods on the <code>JComponent</code>.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary.</p>

 <p>In addition, SeaGlassStyle handles ColorTypes slightly differently
 from Synth.</p>

 <ul>
   <li>ColorType.BACKGROUND will equate to the color stored in UIDefaults
     named "background".</li>
   <li>ColorType.TEXT_BACKGROUND will equate to the color stored in
     UIDefaults named "textBackground".</li>
   <li>ColorType.FOREGROUND will equate to the color stored in UIDefaults
     named "textForeground".</li>
   <li>ColorType.TEXT_FOREGROUND will equate to the color stored in
     UIDefaults named "textForeground".</li>
 </ul>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getColorForState(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType)" title="class or interface in javax.swing.plaf.synth">getColorForState</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying requester<DD><CODE>type</CODE> - Type of color being requested.
<DT><B>Returns:</B><DD>Color to render with</DL>
</DD>
</DL>
<HR>

<A NAME="getFontForState(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getFontForState</H3>
<PRE>
protected <A HREF="http://java.sun.com/javase/6/docs/api/java/awt/Font.html?is-external=true" title="class or interface in java.awt">Font</A> <B>getFontForState</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Returns the font for the specified state. This should NOT call any method
 on the <code>JComponent</code>.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary. If a value named "font" is not found in
 UIDefaults, then the "defaultFont" font in UIDefaults will be returned
 instead.</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getFontForState(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">getFontForState</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying requester
<DT><B>Returns:</B><DD>Font to render with</DL>
</DD>
</DL>
<HR>

<A NAME="getPainter(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getPainter</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthPainter.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthPainter</A> <B>getPainter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Returns the <code>SynthPainter</code> that will be used for painting.
 This ends up delegating to the Painters installed in this style. It may
 return null;
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#getPainter(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">getPainter</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying requester
<DT><B>Returns:</B><DD>SynthPainter to use</DL>
</DD>
</DL>
<HR>

<A NAME="isOpaque(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
isOpaque</H3>
<PRE>
public boolean <B>isOpaque</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Returns true if the region is opaque.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary. If opacity is not specified in UI defaults,
 then it defaults to being non-opaque.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#isOpaque(javax.swing.plaf.synth.SynthContext)" title="class or interface in javax.swing.plaf.synth">isOpaque</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - context SynthContext identifying requester
<DT><B>Returns:</B><DD>true if region is opaque.</DL>
</DD>
</DL>
<HR>

<A NAME="get(javax.swing.plaf.synth.SynthContext, java.lang.Object)"><!-- --></A><H3>
get</H3>
<PRE>
public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>get</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx,
                  <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;key)</PRE>
<DL>
<DD>Getter for a region specific style property.

 <p>Overridden to cause this style to populate itself with data from
 UIDefaults, if necessary.</p>

 <p>Properties in UIDefaults may be specified in a chained manner. For
 example:</p>

 <pre>
 background
 Button.opacity
 Button.Enabled.foreground
 Button.Enabled+Selected.background
 </pre>

 <p>In this example, suppose you were in the Enabled+Selected state and
 searched for "foreground". In this case, we first check for
 Button.Enabled+Selected.foreground, but no such color exists. We then
 fall back to the next valid state, in this case,
 Button.Enabled.foreground, and have a match. So we return it.</p>

 <p>Again, if we were in the state Enabled and looked for "background", we
 wouldn't find it in Button.Enabled, or in Button, but would at the top
 level in UIManager. So we return that value.</p>

 <p>One special note: the "key" passed to this method could be of the form
 "background" or "Button.background" where "Button" equals the prefix
 passed to the SeaGlassStyle constructor. In either case, it looks for
 "background".</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true#get(javax.swing.plaf.synth.SynthContext, java.lang.Object)" title="class or interface in javax.swing.plaf.synth">get</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthStyle.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthStyle</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - SynthContext identifying requester<DD><CODE>key</CODE> - Property being requested. Must not be null.
<DT><B>Returns:</B><DD>Value of the named property *</DL>
</DD>
</DL>
<HR>

<A NAME="getBackgroundPainter(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getBackgroundPainter</H3>
<PRE>
public <A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A> <B>getBackgroundPainter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Gets the appropriate background Painter, if there is one, for the state
 specified in the given SynthContext. This method does appropriate
 fallback searching, as described in #get.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - The SynthContext. Must not be null.
<DT><B>Returns:</B><DD>The background painter associated for the given state, or null if
         none could be found.</DL>
</DD>
</DL>
<HR>

<A NAME="getForegroundPainter(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getForegroundPainter</H3>
<PRE>
public <A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A> <B>getForegroundPainter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Gets the appropriate foreground Painter, if there is one, for the state
 specified in the given SynthContext. This method does appropriate
 fallback searching, as described in #get.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - The SynthContext. Must not be null.
<DT><B>Returns:</B><DD>The foreground painter associated for the given state, or null if
         none could be found.</DL>
</DD>
</DL>
<HR>

<A NAME="getBorderPainter(javax.swing.plaf.synth.SynthContext)"><!-- --></A><H3>
getBorderPainter</H3>
<PRE>
public <A HREF="../../com/seaglasslookandfeel/painter/SeaGlassPainter.html" title="interface in com.seaglasslookandfeel.painter">SeaGlassPainter</A> <B>getBorderPainter</B>(<A HREF="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/SynthContext.html?is-external=true" title="class or interface in javax.swing.plaf.synth">SynthContext</A>&nbsp;ctx)</PRE>
<DL>
<DD>Gets the appropriate border Painter, if there is one, for the state
 specified in the given SynthContext. This method does appropriate
 fallback searching, as described in #get.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> - The SynthContext. Must not be null.
<DT><B>Returns:</B><DD>The border painter associated for the given state, or null if
         none could be found.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SeaGlassStyle.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../com/seaglasslookandfeel/SeaGlassRegion.html" title="class in com.seaglasslookandfeel"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../com/seaglasslookandfeel/SeaGlassStyleWrapper.html" title="class in com.seaglasslookandfeel"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?com/seaglasslookandfeel/SeaGlassStyle.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SeaGlassStyle.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright &#169; 2009-2012 <a href="http://seaglasslookandfeel.com">seaglasslookandfeel.com</a>. All Rights Reserved.
</BODY>
</HTML>
